import request from '@/utils/request'

// 查询销售单明细列表
export function listSalesOrderInfo(query) {
  return request({
    url: '/system/salesOrderInfo/list',
    method: 'get',
    params: query
  })
}

// 查询销售单明细详细
export function getSalesOrderInfo(id) {
  return request({
    url: '/system/salesOrderInfo/' + id,
    method: 'get'
  })
}

// 新增销售单明细
export function addSalesOrderInfo(data) {
  return request({
    url: '/system/salesOrderInfo',
    method: 'post',
    data: data
  })
}

// 修改销售单明细
export function updateSalesOrderInfo(data) {
  return request({
    url: '/system/salesOrderInfo',
    method: 'put',
    data: data
  })
}

// 删除销售单明细
export function delSalesOrderInfo(id) {
  return request({
    url: '/system/salesOrderInfo/' + id,
    method: 'delete'
  })
}
